home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ WinNT Memory 1.xpl < prev    next >
Text File  |  1999-06-13  |  3KB  |  91 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="System\Memory"
  5. "NAME"="Windown NT Memory Settings"
  6. "VERSION"="2.1"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Use large system cache"
  9. "TEXT 2"="Allow paging of kernel"
  10. "TEXT 3"="Execute 16bit Applications Separated"
  11. "DESCRIPTION 1"="OPTION #1: Windows NT Server uses a large system cache while NT Workstation does not."
  12. "DESCRIPTION 2"="If you have NT Workstation and enough RAM, you should try enabling this feature and see if your computer works faster. You can always change it later. "
  13. "DESCRIPTION 3"=" "
  14. "DESCRIPTION 4"="OPTION #2: Windows NT is allowed to page parts of its kernel (the heart of Windows NT)."
  15. "DESCRIPTION 5"="This only happens if a lot of programs are opened, but it will slow your system badly down."
  16. "DESCRIPTION 6"="For maximum performance, you should deactivate this option."
  17. "DESCRIPTION 7"=" "
  18. "DESCRIPTION 8"="OPTION #3: By default, all 16bit applications are run in the same memory-space of Windows NT. If one of these applications crashes badly, it can happen that it's the end of all other 16bit applications also."
  19. "DESCRIPTION 9"="To prevent this, every 16bit application can be run in it's own process. This requires more memory, but it's safer."
  20. "AUTHOR"="Xteq Systems"
  21. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  22. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  23.  
  24.  
  25. sPath1="HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\"
  26. sValue1="LargeSystemCache"
  27. sValue2="DisablePagingExecutive"
  28.  
  29. sPath3="HKLM\System\CurrentControlSet\Control\WOW\"
  30. sValue3="DefaultSeparateVDM"
  31.  
  32. Sub Plugin_Initialize 
  33.  if RegPathExists(sPath1) then
  34.  
  35.   i=RegReadValue(sPath1 & sValue1)
  36.   if i=0 then 
  37.    Call SetUIElement(1,false)
  38.   else
  39.    Call SetUIElement(1,true)
  40.   end if
  41.  
  42.   l=RegReadValue(sPath1 & sValue2)
  43.   if l=0 then
  44.    Call SetUIElement(2,True)
  45.   else
  46.    Call SetUIElement(2,False)   
  47.   end if
  48.  
  49.   s=RegReadValue(sPath3 & sValue3)
  50.   if s="yes" then
  51.      Call SetUIElement(3,True)
  52.   else
  53.      Call SetUIElement(3,False)   
  54.   end if
  55.  
  56.  
  57.  else
  58.    Disable
  59.  end if
  60. End Sub
  61.  
  62. Sub Plugin_CheckData(ElementIndex)
  63. End Sub
  64.  
  65. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  66.  i=GetUIElement(1)
  67.  if i=True then
  68.     Call RegWriteValue(sPath1 & sValue1,1,2)
  69.  else
  70.     Call RegWriteValue(sPath1 & sValue1,0,2)
  71.  end if
  72.  
  73.  if GetUIElement(2)=true then
  74.     Call RegWriteValue(sPath1 & sValue2,0,2)
  75.  else
  76.     Call RegWriteValue(sPath1 & sValue2,1,2)
  77.  end if
  78.  
  79.  if GetUIElement(3)=true then
  80.     Call RegWriteValue(sPath3 & sValue3,"yes",1)
  81.  else
  82.     Call RegWriteValue(sPath3 & sValue3,"no",1)
  83.  end if
  84.  
  85.  
  86.  Call Restart
  87. End Sub
  88.  
  89. Sub Plugin_Terminate 
  90. End Sub
  91.